package com.clstu.staticmathod_.interface_;

public class Interface04 {
    public static void main(String[] args) {
        new B().f();
    }
}
interface IFa{
    int x=10;
}

class A{
    int x=100;
}

class B extends A implements IFa{
    public void f(){
        //System.out.println(x);//错误，写法对x的指代不明   要明确x到底是哪个x
        System.out.println(IFa.x);//接口的 x
        System.out.println(super.x);//父类的x
    }
}